package com.kb5173.search.common.utils;

/**
 * @author Chengfei.Sun
 */
public class RedisKeyHelper {
    /**
     * 词汇对应key
     *
     * @return
     */
    public static String words() {
        return "base:search:allWords";
    }

    /**
     * 上次获取词汇索引
     *
     * @return
     */
    public static String lastWordsIndex() {
        return "base:search:lastWordsIndex";
    }

    /**
     * 过期索引
     *
     * @return
     */
    public static String expireIndexId() {
        return "base:search:expireIndexId";
    }

    /**
     * JOB业务锁key
     *
     * @param jobId
     * @return
     */
    public static String jobLock(String jobId) {
        return "base:search:jobLock:" + jobId;
    }

}
